const lock_field = {
    "addDisplay": false,
    "addDisabled": false,
    "editDisplay": false,
    "editDisabled": true,
    "showColumn": false,
};
export const tableOption = {
    "border": true,
    "index": true,
    "indexLabel": "序号",
    "stripe": true,
    "menuAlign": "center",
    "align": "center",
    "searchMenuSpan": 6,
    "selection": true,
    "rowKey": "chengjiId",
    "height": "100%",
    "calcHeight": 140,
    "size": 'mini',
    index: false,
    "column": [{
            ...lock_field,
            "type": "score",
            "label": "编号",
            "prop": "chengjiId",
            "hide": true,
        }, {
            ...lock_field,
            "type": "score",
            "label": "学籍号",
            "prop": "chengjiStudent",
            fixed: true,
        }, {
            ...lock_field,
            "type": "radio",
            "label": "学期编号",
            "prop": "chengjiTerm",
        }, {
            "label": "语文",
            "children": [{
                    "label": "必修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiChineses", bind: "chengjiChineses.scores0" },
                        { "label": "学分", "type": "input", "prop": "chengjiChineses", bind: "chengjiChineses.credits0" },
                    ],
                },
                {
                    "label": "选修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiChineses", bind: "chengjiChineses.scores1" },
                        { "label": "学分", "type": "input", "prop": "chengjiChineses", bind: "chengjiChineses.credits1" },
                    ],
                },
                {
                    "label": "小计",
                    "prop": "chengjiChineses_credits_sum",
                }
            ]
        }, {
            "type": "score",
            "label": "外语",
            "children": [{
                    "label": "必修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiForeign", bind: "chengjiForeign.scores0" },
                        { "label": "学分", "type": "input", "prop": "chengjiForeign", bind: "chengjiForeign.credits0" },
                    ],
                },
                {
                    "label": "选修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiForeign", bind: "chengjiForeign.scores1" },
                        { "label": "学分", "type": "input", "prop": "chengjiForeign", bind: "chengjiForeign.credits1" },
                    ],
                },
                {
                    "label": "小计",
                    "prop": "chengjiForeign_credits_sum"
                }
            ]
        }, {
            "type": "score",
            "label": "数学",
            "children": [{
                    "label": "必修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiMath", bind: "chengjiMath.scores0" },
                        { "label": "学分", "type": "input", "prop": "chengjiMath", bind: "chengjiMath.credits0" },
                    ],
                },
                {
                    "label": "选修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiMath", bind: "chengjiMath.scores1" },
                        { "label": "学分", "type": "input", "prop": "chengjiMath", bind: "chengjiMath.credits1" },
                    ],
                },
                {
                    "label": "小计",
                    "prop": "chengjiMath_credits_sum"
                }
            ]
        }, {
            "type": "score",
            "label": "思想政治",
            "children": [{
                    "label": "必修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiPolitical", bind: "chengjiPolitical.scores0" },
                        { "label": "学分", "type": "input", "prop": "chengjiPolitical", bind: "chengjiPolitical.credits0" },
                    ],
                },
                {
                    "label": "选修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiPolitical", bind: "chengjiPolitical.scores1" },
                        { "label": "学分", "type": "input", "prop": "chengjiPolitical", bind: "chengjiPolitical.credits1" },
                    ],
                },
                {
                    "label": "小计",
                    "prop": "chengjiPolitical_credits_sum"
                }
            ]
        }, {
            "type": "score",
            "label": "历史",
            "children": [{
                    "label": "必修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiHistory", bind: "chengjiHistory.scores0" },
                        { "label": "学分", "type": "input", "prop": "chengjiHistory", bind: "chengjiHistory.credits0" },
                    ],
                },
                {
                    "label": "选修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiHistory", bind: "chengjiHistory.scores1" },
                        { "label": "学分", "type": "input", "prop": "chengjiHistory", bind: "chengjiHistory.credits1" },
                    ],
                },
                {
                    "label": "小计",
                    "prop": "chengjiHistory_credits_sum"
                }
            ]
        }, {
            "type": "score",
            "label": "地理",
            "children": [{
                    "label": "必修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiGeography", bind: "chengjiGeography.scores0" },
                        { "label": "学分", "type": "input", "prop": "chengjiGeography", bind: "chengjiGeography.credits0" },
                    ],
                },
                {
                    "label": "选修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiGeography", bind: "chengjiGeography.scores1" },
                        { "label": "学分", "type": "input", "prop": "chengjiGeography", bind: "chengjiGeography.credits1" },
                    ],
                },
                {
                    "label": "小计",
                    "prop": "chengjiGeography_credits_sum"
                }
            ]
        }, {
            "type": "score",
            "label": "物理",
            "children": [{
                    "label": "必修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiPhysics", bind: "chengjiPhysics.scores0" },
                        { "label": "学分", "type": "input", "prop": "chengjiPhysics", bind: "chengjiPhysics.credits0" },
                    ],
                },
                {
                    "label": "选修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiPhysics", bind: "chengjiPhysics.scores1" },
                        { "label": "学分", "type": "input", "prop": "chengjiPhysics", bind: "chengjiPhysics.credits1" },
                    ],
                },
                {
                    "label": "小计",
                    "prop": "chengjiPhysics_credits_sum"
                }
            ]
        }, {
            "type": "score",
            "label": "化学",
            "children": [{
                    "label": "必修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiChemistry", bind: "chengjiChemistry.scores0" },
                        { "label": "学分", "type": "input", "prop": "chengjiChemistry", bind: "chengjiChemistry.credits0" },
                    ],
                },
                {
                    "label": "选修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiChemistry", bind: "chengjiChemistry.scores1" },
                        { "label": "学分", "type": "input", "prop": "chengjiChemistry", bind: "chengjiChemistry.credits1" },
                    ],
                },
                {
                    "label": "小计",
                    "prop": "chengjiChemistry_credits_sum",
                }
            ]
        },
        {
            "type": "score",
            "label": "生物",
            "children": [{
                    "label": "必修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiBiology", bind: "chengjiBiology.scores0" },
                        { "label": "学分", "type": "input", "prop": "chengjiBiology", bind: "chengjiBiology.credits0" },
                    ],
                },
                {
                    "label": "选修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiBiology", bind: "chengjiBiology.scores1" },
                        { "label": "学分", "type": "input", "prop": "chengjiBiology", bind: "chengjiBiology.credits1" },
                    ],
                },
                {
                    "label": "小计",
                    "prop": "chengjiBiology_credits_sum"
                }
            ]
        },
        {
            "type": "score",
            "label": "信息技术",
            "children": [{
                    "label": "必修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiInformation", bind: "chengjiInformation.scores0" },
                        { "label": "学分", "type": "input", "prop": "chengjiInformation", bind: "chengjiInformation.credits0" },
                    ],
                },
                {
                    "label": "选修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiInformation", bind: "chengjiInformation.scores1" },
                        { "label": "学分", "type": "input", "prop": "chengjiInformation", bind: "chengjiInformation.credits1" },
                    ],
                },
                {
                    "label": "小计",
                    "prop": "chengjiInformation_credits_sum"
                }
            ]
        },
        {
            "type": "score",
            "label": "通用技术",
            "children": [{
                    "label": "必修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiTechnology", bind: "chengjiTechnology.scores0" },
                        { "label": "学分", "type": "input", "prop": "chengjiTechnology", bind: "chengjiTechnology.credits0" },
                    ],
                },
                {
                    "label": "选修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiTechnology", bind: "chengjiTechnology.scores1" },
                        { "label": "学分", "type": "input", "prop": "chengjiTechnology", bind: "chengjiTechnology.credits1" },
                    ],
                },
                {
                    "label": "小计",
                    "prop": "chengjiTechnology_credits_sum"
                }
            ]
        },
        {
            "type": "score",
            "label": "艺术",
            "children": [{
                    "label": "必修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiArts", bind: "chengjiArts.scores0" },
                        { "label": "学分", "type": "input", "prop": "chengjiArts", bind: "chengjiArts.credits0" },
                    ],
                },
                {
                    "label": "选修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiArts", bind: "chengjiArts.scores1" },
                        { "label": "学分", "type": "input", "prop": "chengjiArts", bind: "chengjiArts.credits1" },
                    ],
                },
                {
                    "label": "小计",
                    "prop": "chengjiArts_credits_sum"
                }
            ]
        },
        {
            "type": "score",
            "label": "体育与健康",
            "children": [{
                    "label": "必修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiSports", bind: "chengjiSports.scores0" },
                        { "label": "学分", "type": "input", "prop": "chengjiSports", bind: "chengjiSports.credits0" },
                    ],
                },
                {
                    "label": "选修",
                    "children": [
                        { "label": "成绩", "type": "input", "prop": "chengjiSports", bind: "chengjiSports.scores1" },
                        { "label": "学分", "type": "input", "prop": "chengjiSports", bind: "chengjiSports.credits1" },
                    ],
                },
                {
                    "label": "小计",
                    "prop": "chengjiSports_credits_sum"
                }
            ]
        },
        {
            ...lock_field,
            "type": "score",
            "label": "创建人",
            "prop": "chengjiCreateUser",
        },
        {
            ...lock_field,
            "type": "score",
            "label": "审核人",
            "prop": "chengjiApproveUser",
        },
        {
            ...lock_field,
            "type": "score",
            "label": "",
            "prop": "chengjiApproveTime",
        }
    ],
    group: [{
        label: "附件",
        column: [{
            "type": "upload",
            "label": "附件",
            "prop": "attachment",
            "action": "/szpj/file/zp_cheng_ji/upload",
            "multiple": true,
        }],
    }],

}